package com.enjoy.studyfragment.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.enjoy.studyfragment.R;
import com.enjoy.studyfragment.bean.CityBean;
import com.enjoy.studyfragment.bean.HomeBean;
import com.orhanobut.logger.Logger;

/**
 * Created by Administrator on 2018/3/15.
 */

public class ContactAdapter extends BaseQuickAdapter<CityBean, BaseViewHolder> {
    public ContactAdapter(){
        super(R.layout.adapter_contact_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, CityBean item) {
        Logger.d("position:"+helper.getAdapterPosition());
        TextView tvName = helper.getView(R.id.item_name);
        tvName.setText(item.getTarget());
    }
}
